var app = angular.module('myApp', []);

app.controller('fileUploadController', function($rootScope,$scope,$http) {
    
    console.log($rootScope);
    $scope.username = '123';
    $scope.getBasePath = globalPath.getBasePath;
    
    $scope.upload = function() {
    	var url = $scope.getBasePath() + 'file/img/back_upload';
    	$http({
	        method : 'get',
	        url : url
	    }).
	    success(function(response) {
	    	console.log(url);
	        console.log(response);
	        console.log(response.data);
	    }).
	    error(function(response) {
	        console.log(response);
	    });
	    
    };
});